package com.rbac.api.controller.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

///修改菜单状态
public class PostMenuSaveStatusRequest {


    ///数据id
    @NotNull(message = "post.common.id.not.null")
    private Integer id;

    ///菜单状态：1无效、2有效
    @NotNull(message = "post.common.menu.status.not.null")
    @Min(value = 1,message = "post.common.menu.status.min.fail")
    @Max(value = 2,message = "post.common.menu.status.max.fail")
    private Integer menuStatus;


    ///当前菜单状态：1无效、2有效
    @NotNull(message = "post.common.now.menu.status.not.null")
    @Min(value = 1,message = "post.common.now.menu.status.min.fail")
    @Max(value = 2,message = "post.common.now.menu.status.max.fail")
    private Integer nowStatus;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMenuStatus() {
        return menuStatus;
    }

    public void setMenuStatus(Integer menuStatus) {
        this.menuStatus = menuStatus;
    }

    public Integer getNowStatus() {
        return nowStatus;
    }

    public void setNowStatus(Integer nowStatus) {
        this.nowStatus = nowStatus;
    }


    @Override
    public String toString() {
        return "PostMenuSaveStatusRequest{" +
                "id=" + id +
                ", menuStatus=" + menuStatus +
                ", nowStatus=" + nowStatus +
                '}';
    }
}
